<!-- 理财 - 一级页面 -->
<template>
  <div class="fp">
    <!-- 这是每个页面的头部 现在抽离到每个页面 用于解决 内容于导航的对应 -->
    <!-- <tab :line-width=2 active-color='#fc378c' v-model="index">
      <tab-item v-for="(tab, index) in tabList" @on-item-click="tabChange(index)" :key="index">{{tab}}</tab-item>
    </tab> -->
    <router-view/>
    <!-- 可滑动的tabs -->
    <!--<div class="scroll-x-wrap">-->
    <!--<div class="scroll-x">-->
    <!--<span :class="{active: xFlags[0]}" @click="scrollX(0)">币余宝</span>-->
    <!--<span :class="{active: xFlags[1]}" @click="scrollX(1)">智能投顾</span>-->
    <!--<span :class="{active: xFlags[2]}" @click="scrollX(2)">ETF指数</span>-->
    <!--<span :class="{active: xFlags[3]}" @click="scrollX(3)">OTC套利</span>-->
    <!--<span :class="{active: xFlags[4]}" @click="scrollX(4)">BTC指数</span>-->
    <!--<span :class="{active: xFlags[5]}" @click="scrollX(5)">ICO基金</span>-->
    <!--<span :class="{active: xFlags[6]}" @click="scrollX(6)">ETF交易</span>-->
    <!--<span :class="{active: xFlags[7]}" @click="scrollX(7)">BTC交易</span>-->
    <!--</div>-->
    <!--</div>-->
    <!-- <router-view/> -->
  </div>
</template>
<script>
  // import { Tab, TabItem, Swiper, SwiperItem } from 'vux'
  // var indexStatus = 0;
  // if (location.hash == '#/main/fp/digList') {
  //   indexStatus = 0;
  // }
  // if (location.hash == '#/main/fp/aiList') {
  //   indexStatus = 1;
  // }
  // if (location.hash == '#/main/fp/etfList') {
  //   indexStatus = 2;
  // }
  // if (location.hash == '#/main/fp/otcList') {
  //   indexStatus = 3;
  // }
  // if (location.hash == '#/main/fp/btcList') {
  //   indexStatus = 4;
  // }
  // if (location.hash == '#/main/fp/icoList') {
  //   indexStatus = 5;
  // }
  // if (location.hash == '#/main/fp/tetfList') {
  //   indexStatus = 6;
  // }
  // if (location.hash == '#/main/fp/tbtcList') {
  //   indexStatus = 7;
  // }
  // var count = 0;
  export default {
    components: {
      // Tab,
      // TabItem,
      // Swiper,
      // SwiperItem
    },
    data() {
      return {
        // index: indexStatus,
        // tabList: ['币余宝', '智能投顾', 'ETF指数', 'OTC套利', 'BTC指数', 'ICO基金', 'ETF交易', 'BTC交易']
      }
    },
    mounted() {

    },
    watch: {

    },
    methods: {
      // tabChange(index) {
      //   this.index = index;
      //   let fpPaths = ['digList', 'aiList', 'etfList', 'otcList', 'btcList', 'icoList', 'tetfList', 'tbtcList']
      //   this.$router.push({ path: `/main/fp/${fpPaths[index]}` })
      // }
    }
  }
</script>

<style lang="less" scoped>
</style>